<?php
// Layout file for the landing page views
?>
<!DOCTYPE html>
<!-- The above DOCTYPE is for HTML5 -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php __('ImageRecon'); ?>
		<?php /* echo $title_for_layout; */ ?>
	</title>
	<?php
		echo $this->Html->meta('icon');

    echo $this->LessCss->cssLinkFromLess('default.less');
    
    echo $this->Html->css('main_menu');
    
    echo $this->Html->script('jquery-1.6.2.js');
    echo $this->Html->css(   "jquery-ui-1.8.16.custom.blackOriented.css");
    echo $this->Html->script('jquery-ui-1.8.16.custom.blackOriented.min.js');
        
    echo $this->Html->script('libs/jQueryTools/jquery.tools.min-MostTools.js');
    ?>
    <script type="text/javascript">
      var elfinderConnectorPath = "<?php echo GlobalsClass::getElfinderConnectorPath(); ?>";
      var fijiAjaxLauncherUrl   = "<?php echo GlobalsClass::getFijiAjaxLauncherUrl();   ?>";
    </script>
    
    <?php
    echo $this->Html->script('default.js');
    
    //echo $this->Html->script('libs/fixed-header-table/jquery.fixedheadertable.min.js');
  
    echo $scripts_for_layout;    
    
    // <editor-fold defaultstate="collapsed" desc="Pull in CSS & JS files that are specific to a Controller and/or Controller/Action">
    /////////////////////////////////////////////////////////////////////////////////////////////
    //// Pull in CSS files specific to a Controller and/or a Controller/Action respectively. ////
    // webroot/css/contoller_name.css
    if(is_file(WWW_ROOT . 'css' . DS . $this->params['controller'] . '.less')) {
      echo $this->LessCss->cssLinkFromLess($this->params['controller']); 
    }
    else if (is_file(WWW_ROOT . 'css' . DS . $this->params['controller'] . '.css')) {
      echo $html->css($this->params['controller']);
    }    
    // webroot/css/contoller_name/action_name.css (or ".less")
    if (is_file(WWW_ROOT . 'css' . DS . $this->params['controller'] . DS . $this->params['action'] . '.less')) {
      //die("default.ctp about to call cssLinkFromLess() on: ". $this->params['controller'] . '/' . $this->params['action']);
      echo $this->LessCss->cssLinkFromLess($this->params['controller'] . '/' . $this->params['action']);
    }
    else if (is_file(WWW_ROOT . 'css' . DS . $this->params['controller'] . DS . $this->params['action'] . '.css')) {
      echo $html->css($this->params['controller'] . '/' . $this->params['action']);
    }

    /////////////////////////////////////////////////////////////////////////////////////////
    //// Pull in JS files specific to a Controller and/or a Controller/Action ///////////////
    // webroot/js/contoller_name.js
    if (is_file(WWW_ROOT . 'js' . DS . $this->params['controller'] . '.js')) { 
      echo $this->Html->script($this->params['controller']);
    }
    // webroot/js/contoller_name/action_name.js
    if (is_file(WWW_ROOT . 'js' . DS . $this->params['controller'] . DS . $this->params['action'] . '.js')) { 
      echo $this->Html->script($this->params['controller'] . '/' . $this->params['action']);
    }// </editor-fold>

    // Make ELFINDER available Note we must first include jQuery js and jQuery UI js and css.
		$this->Elfinder->importElfinder();
	?>
    
</head>
<body>
  
  
  <?php echo $content_for_layout; ?>
  
  
  
  <!--  ELFINDER (gets filled in by jQuery) ------------------------------------------------- -->
  <div id="file_exp_container" class="modal">
    <!--  <div id="file_exp" class="modal"></div>-->
    <div id="file_exp"></div>
  </div>

      

  <?php echo $this->Js->writeBuffer(); // write out cached Js helper scripts ?>
</body>
</html>
    
    
    
    
    
    
    
    
    



